package fun.easycode.jointblock.manager;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collections;
import java.util.List;

@FeignClient(name = "UserClient",
        url = "http://api.cd0755d8e9df9425a8d1653d7ac3a863d.cn-beijing.alicontainer.com/user-service")
public interface UserClient {

    @GetMapping("/b2c/manage/users")
    ResponseEntity<List<UserBaseDto>> getUserByIds(@RequestParam("userIds") List<String> userIds);

    default ResponseEntity<List<UserBaseDto>> getUserByTest(){
        return ResponseEntity.ok(Collections.emptyList());
    }
}
